import type { Route } from '../index.type'
import Layout from '@/layout/index.vue'
import { createNameComponent } from '../createNode'
const route: Route[] = [
  // TODO MY myBar
  {
    path: '/myEcharts',
    component: Layout,
    redirect: '/myEcharts/myBar',
    meta: { title: 'message.menu.echarts.name', icon: 'sfont system-chart' },
    children: [
      {
        path: 'myBar',
        component: createNameComponent(() => import('@/views/main/echarts/myBar.vue')),
        meta: { title: '我的柱状图' }
      }
    ]
  }
]

export default route